;$(function() {
	var id = $("#id").val();
	getInfo(id);
})

function getInfo(id){
	   $.ajax({
        url: ctxPath+"/agency/policy/findById/"+id,
        type: 'GET',
        success: function(d){
        	var success = d.success;
        	 if(success==true){
        	 var data=  d.data;
        	 if(data!=null){
        		 $("#typeName").html(data.typeName);
        		 $("#title").html(data.title);
        		 $("#releaseTime").html(data.releaseTime);
        		 $("#content").html(data.contentEO.content);
            		 if(data.fileEO!=null){
               			 var img = "";
               			 var url=ctxPath+"/file/showImage/"+data.fileEO.id;
               				 img+='<li>'
                 			+'<a href="'+url+'" data-type="image">'
            				+'<img src="'+url+'" alt="" width="100px;">'
            			    +'</a>'
            			    +'</li>'  ;
               	    $("#dropzone").html(img);
               	 $('.plusview').plusview({
             		height : 400,
             		hide : "hide",
             		show : "show"
             	});
               	}	 
        	 }
        	}
        } 
    });
}
